package com.example.userservice.exception;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2018-06-05
 **/
public class IllegalParamsException extends RuntimeException implements WithTypeException {

    private static final long serialVersionUID = 1L;

    public IllegalParamsException (){

    }
    private Type type;

    public enum Type {
        WRONG_PAGE_NUM,WRONG_TYPE
    }

    public Type type(){
        return type;
    }

    public IllegalParamsException(Type type,String msg) {
        super(msg);
        this.type = type;
    }

}




